﻿using System.Data.SqlClient;
using System.Data.SqlTypes;


public partial class StoredProcedures
{

	[Microsoft.SqlServer.Server.SqlProcedure]
	public static void DeleteTag(SqlString StationID,SqlString Caster,SqlString Tag)
	{
		if (!CheckString(StationID) || !CheckString(Caster) || !CheckString(Tag))
		{
			return;
		}

		using (SqlConnection con = new SqlConnection("context connection=true"))
		{
			con.Open();
			using (CommandSet cmd = new CommandSet(con.CreateCommand(),StationID,Caster,Tag))
			{
				cmd.CommandText = "EXECUTE dbo.ReleaseBind @lid,@tid;";
				cmd.ExecuteNonQuery();
			}
		}
	}
}
